import request from '@/utils/request'

// 封装login接口

// export const loginAPI = (data) => {
//   return request({
//     url: '/sys/login',
//     method: 'POST',
//     data: data
//   })
// }

export const loginAPI = data => request({
  url: '/sys/login',
  method: 'POST',
  data

})

export const getUserInfoAPI = () => request({
  url: '/sys/profile',
  method: 'POST'
})

export const getUserDetaillByIdAPI = (id) => request({
  url: `/sys/user/${id}`
})
